package com.sram.controller.common;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/error")
public class ErrorController {
    @RequestMapping(value="/allError")
    public String getAll(){
        return "common/allError";
    }
    @RequestMapping(value="/kong")
    public String kong() throws Exception {
        throw  new Exception("kong");
    }
    @RequestMapping(value="/500")
    public String nexterr() throws Exception {
        return "common/500Error";
    }
}
